package com.huangguolin.cloud.spring.util;


import org.springframework.util.DigestUtils;

public final class MD5Util {

    private  static final String PASSWDKEY="abc123456abc";
    public static String encode(CharSequence charSequence){
       return DigestUtils.md5DigestAsHex((charSequence + PASSWDKEY).getBytes());
    }

    public static void main(String[] args) {
        System.out.println(encode("456123"));
    }

}
